package com.dries.portal.module.coupon.executor;

import com.dries.portal.module.coupon.enums.RuleFlag;
import com.dries.portal.module.coupon.vo.SettlementInfo;

/**
 * @Description: 优惠券模板规则处理器接口定义
 * @Author ZSY
 * @createTime 2020/7/31 13:20
 */
public interface RuleExecutor {

    /**
     * 规则标记类型
     * @return
     */
    RuleFlag ruleConfig();
    /**
     * 优惠券规则的计算
     */
    SettlementInfo computeRule(SettlementInfo settlement);

}
